#
# SmartPlaylistSourceViewItem.py
#
# This work is released under the GNU GPL, version 2 or later.
#

from SourceViewItem import *

#
# "Smart" playlist (future use)
#
class SmartPlaylistSourceViewItem(SourceViewItem):
	def __init__(self,container,source):
		SourceViewItem.__init__(self,container,source['Name'])
		self.source = source
		self.setRenameEnabled(0,True)
		self.canBurn = True
		self.canExport = True
		self.canBeRemoved = True

	def makeKey(self):
		return u'G%s' % unikode(self.name)

	def changeName(self,newName):
		self.doSourceChangeName(newName)

	def iconFileName(self): return "sourcesmartplaylist.png"
